<template>
  <div class="all">
    <div class="box1">
      <div class="logoBox">
        <img class="logo" src="../../public/img/logo.png" alt="" />
      </div>
      <div class="login">
        <div class="title1">
          <span class="titWord">登录到</span>
        </div>
        <div class="title2">
          <span class="titWord">启点优聘工作台</span>
        </div>
        <div class="change">
          <div class="change1">
            <span class="changeWord1">没有账号吗？</span>
          </div>
          <div class="change2">
            <span @click="register" class="changeWord2">注册新账号</span>
          </div>
        </div>
        <div>
          <el-input
            v-model="inputdata.username"
            style="margin-bottom: 24px; width: 400px; height: 40px"
            placeholder="请输入账号"
            :prefix-icon="ico.User"
          />
          <el-input
            v-model="inputdata.password"
            style="margin-bottom: 24px; width: 400px; height: 40px"
            placeholder="请输入登录密码"
            :prefix-icon="ico.Unlock"
            show-password
          />
        </div>
        <div class="choose">
          <el-checkbox label="记住账号" name="type" />
          <span class="chooseWord">忘记密码？</span>
        </div>
        <el-button @click="users" class="button" type="primary">继续</el-button>
        <div class="other">
          <span class="otherWord">使用微信扫码登录</span>
          <span class="otherImg">丨</span>
          <span class="otherWord">使用短信登录</span>
        </div>
      </div>
      <div class="year">
        <span class="yearWord"
          >Copyright @ 2021-2022 QiDianyoupin.All Rights Reserved</span
        >
      </div>
    </div>
    <div class="box2">
      <img class="img1" src="../../public/img/logbg1.png" alt="" />
      <img class="img2" src="../../public/img/logbg2.png" alt="" />
      <span class="box2Word1">创造未来</span>
      <span class="box2Word2">启点优聘为老师与学生创作更好的教育方式</span>
    </div>
  </div>
</template>

<script>
import { reactive } from "vue";
import { User, Unlock } from "@element-plus/icons-vue";
export default {
  data() {
    let inputdata = reactive({ username: "", password: "" });
    return {
      inputdata,
      ico: {
        User: User,
        Unlock: Unlock,
      },
    };
  },
  methods: {
    register() {
      this.$router.push("./register");
    },
    users() {
        this.$router.push("./user")
    }
  },
};
</script>

<style lang="less" scoped>
.all {
  display: flex;
  width: 1440px;
  height: 865px;
  .box1 {
    display: flex;
    width: 720px;
    height: 865px;
    flex-direction: column;
    .logoBox {
      width: 720px;
      height: 64px;
      .logo {
        margin-top: 19px;
        margin-left: 16px;
        width: 131px;
        height: 27px;
      }
    }
    .login {
      margin-top: 80px;
      margin-left: 80px;
      display: flex;
      width: 440px;
      height: 470px;
      flex-direction: column;
      .title1 {
        margin-bottom: 4px;
        width: 108px;
        height: 44px;
      }
      .title2 {
        margin-bottom: 24px;
        width: 252px;
        height: 44px;
      }
      .titWord {
        color: rgba(0, 0, 0, 0.9);
        font-size: 36px;
        font-weight: 700;
        font-family: "PingFang SC";
        text-align: left;
        line-height: 44px;
      }
      .change {
        margin-bottom: 48px;
        display: flex;
        width: 161px;
        height: 22px;
        .change1 {
          margin-right: 8px;
          width: 83px;
          height: 22px;
          .changeWord1 {
            color: rgba(0, 0, 0, 0.6);
            font-size: 13px;
            font-weight: 400;
            font-family: "PingFang SC";
          }
        }
        .change2 {
          width: 70px;
          height: 22px;
          .changeWord2 {
            color: rgba(0, 0, 0, 0.9);
            font-size: 14px;
            font-weight: 400;
            font-family: "PingFang SC";
          }
        }
        .input1 {
          margin-bottom: 24px;
          width: 400px;
          height: 40px;
        }
        .input2 {
          margin-bottom: 24px;
          width: 400px;
          height: 40px;
        }
      }
    }
    .year {
      margin-top: 100px;
      margin-left: 80px;
      width: 383px;
      height: 22px;
      .yearWord {
        color: rgba(0, 0, 0, 0.4);
        font-size: 14px;
        font-weight: 400;
      }
    }
  }
}
.chooseWord {
  color: rgba(22, 93, 255, 1);
  font-size: 14px;
  font-weight: 400;
  font-family: "PingFang SC";
}
.choose {
  display: flex;
  margin-bottom: 48px;
  width: 400px;
  height: 22px;
  justify-content: space-between;
}
.otherWord {
  color: rgba(22, 93, 255, 1);
  font-size: 14px;
  font-weight: 400;
  font-family: "PingFang SC";
}
.otherImg {
  color: rgba(0, 0, 0, 0.26);
  font-size: 14px;
  font-weight: 400;
  font-family: "PingFang SC";
}
.button {
  margin-bottom: 24px;
  width: 400px;
  height: 40px;
}
.other {
  width: 226px;
  height: 22px;
}
.box2 {
  width: 720px;
  height: 865px;
  background-color: #165dff;
  .img1 {
    position: absolute;
    left: 726px;
    z-index: 1;
    width: 714px;
    height: 320px;
  }
  .img2 {
    position: absolute;
    left: 800px;
    top: 312px;
    z-index: 2;
    width: 580px;
    height: 476px;
  }
  .box2Word1 {
    position: absolute;
    left: 946px;
    top: 129px;
    z-index: 3;
    color: rgba(255, 255, 255, 1);
    font-size: 64px;
    font-weight: 700;
    font-family: "PingFang SC";
    text-align: left;
  }
  .box2Word2 {
    position: absolute;
    left: 846px;
    top: 231px;
    z-index: 3;
    color: rgba(255, 255, 255, 1);
    font-size: 24px;
    font-weight: 400;
    font-family: "PingFang SC";
    text-align: left;
  }
}
</style>
